package cn.autowired.exam.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 心里测试题库
 * </p>
 *

 */
@TableName("exam_question")
public class Question extends Model<Question> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 题目
     */
	private String title;
    /**
     * A选项
     */
	private String optionA;
	private String optionB;
	private String optionC;
	private String optionD;
    /**
     * 备注
     */
	private String remark;
    /**
     * 题目类型
     */
	private Integer type;

	/**
	 * 试卷Id
	 *
	 */
	private Integer paperId;

	public Integer getPaperId() {
		return paperId;
	}

	public void setPaperId(Integer paperId) {
		this.paperId = paperId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getOptionA() {
		return optionA;
	}

	public void setOptionA(String optionA) {
		this.optionA = optionA;
	}

	public String getOptionB() {
		return optionB;
	}

	public void setOptionB(String optionB) {
		this.optionB = optionB;
	}

	public String getOptionC() {
		return optionC;
	}

	public void setOptionC(String optionC) {
		this.optionC = optionC;
	}

	public String getOptionD() {
		return optionD;
	}

	public void setOptionD(String optionD) {
		this.optionD = optionD;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

public static interface Field{
		String id = "id";
		String title = "title";
		String optionA = "optionA";
		String optionB = "optionB";
		String optionC = "optionC";
		String optionD = "optionD";
		String remark = "remark";
		String type = "type";
		String paperId= "paperId";
	}
}
